/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.scene.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * CTF实验环境Entity
 * @author dh
 * @version 2017-05-15
 */
public class SceneCtfEnvironment extends DataEntity<SceneCtfEnvironment> {
	
	private static final long serialVersionUID = 1L;
	private String ctfEnvironmentName;		// 教学实验环境名称
	private String ctfEnvironmentType;		// 教学实验环境类型
	private String ctfEnvironmentTime;		// 实验时间
	private String label;		// 标签
	private String increaseTimeAllow;		// 是否允许增加实验时间
	private String increaseTime;		// 每次增加时间
	private String increaseNumber;		// 增加次数
	private String answerType;		// 实验答案类型
	private String password;		// 密码
	private String account;		// 账户名
	private String fixedAnswer;		// 固定答案
	private String ctfType;		// ctf类型
	private String ip;		// ip
	private String port;		// 端口
	private String topologyXml;		// 拓扑xml

	@Override
	public String toString() {
		return "SceneCtfEnvironment{" +
				"ctfEnvironmentName='" + ctfEnvironmentName + '\'' +
				", ctfEnvironmentType='" + ctfEnvironmentType + '\'' +
				", ctfEnvironmentTime='" + ctfEnvironmentTime + '\'' +
				", label='" + label + '\'' +
				", increaseTimeAllow='" + increaseTimeAllow + '\'' +
				", increaseTime='" + increaseTime + '\'' +
				", increaseNumber='" + increaseNumber + '\'' +
				", answerType='" + answerType + '\'' +
				", password='" + password + '\'' +
				", account='" + account + '\'' +
				", fixedAnswer='" + fixedAnswer + '\'' +
				", ctfType='" + ctfType + '\'' +
				", ip='" + ip + '\'' +
				", port='" + port + '\'' +
				", topologyXml='" + topologyXml + '\'' +
				'}';
	}

	public SceneCtfEnvironment() {
		super();
	}

	public SceneCtfEnvironment(String id){
		super(id);
	}

	@Length(min=1, max=64, message="教学实验环境名称长度必须介于 1 和 64 之间")
	public String getCtfEnvironmentName() {
		return ctfEnvironmentName;
	}

	public void setCtfEnvironmentName(String ctfEnvironmentName) {
		this.ctfEnvironmentName = ctfEnvironmentName;
	}
	
	@Length(min=1, max=4, message="教学实验环境类型长度必须介于 1 和 4 之间")
	public String getCtfEnvironmentType() {
		return ctfEnvironmentType;
	}

	public void setCtfEnvironmentType(String ctfEnvironmentType) {
		this.ctfEnvironmentType = ctfEnvironmentType;
	}
	
	@Length(min=1, max=8, message="实验时间长度必须介于 1 和 8 之间")
	public String getCtfEnvironmentTime() {
		return ctfEnvironmentTime;
	}

	public void setCtfEnvironmentTime(String ctfEnvironmentTime) {
		this.ctfEnvironmentTime = ctfEnvironmentTime;
	}
	
	@Length(min=0, max=64, message="标签长度必须介于 0 和 64 之间")
	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}
	
	@Length(min=0, max=4, message="是否允许增加实验时间长度必须介于 0 和 4 之间")
	public String getIncreaseTimeAllow() {
		return increaseTimeAllow;
	}

	public void setIncreaseTimeAllow(String increaseTimeAllow) {
		this.increaseTimeAllow = increaseTimeAllow;
	}
	
	@Length(min=0, max=64, message="每次增加时间长度必须介于 0 和 64 之间")
	public String getIncreaseTime() {
		return increaseTime;
	}

	public void setIncreaseTime(String increaseTime) {
		this.increaseTime = increaseTime;
	}
	
	@Length(min=0, max=64, message="增加次数长度必须介于 0 和 64 之间")
	public String getIncreaseNumber() {
		return increaseNumber;
	}

	public void setIncreaseNumber(String increaseNumber) {
		this.increaseNumber = increaseNumber;
	}
	
	@Length(min=0, max=4, message="实验答案类型长度必须介于 0 和 4 之间")
	public String getAnswerType() {
		return answerType;
	}

	public void setAnswerType(String answerType) {
		this.answerType = answerType;
	}
	
	@Length(min=0, max=64, message="密码长度必须介于 0 和 64 之间")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	@Length(min=0, max=64, message="账户名长度必须介于 0 和 64 之间")
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}
	
	@Length(min=0, max=255, message="固定答案长度必须介于 0 和 255 之间")
	public String getFixedAnswer() {
		return fixedAnswer;
	}

	public void setFixedAnswer(String fixedAnswer) {
		this.fixedAnswer = fixedAnswer;
	}
	
	@Length(min=0, max=4, message="ctf类型长度必须介于 0 和 4 之间")
	public String getCtfType() {
		return ctfType;
	}

	public void setCtfType(String ctfType) {
		this.ctfType = ctfType;
	}
	
	@Length(min=0, max=64, message="ip长度必须介于 0 和 64 之间")
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	
	@Length(min=0, max=64, message="端口长度必须介于 0 和 64 之间")
	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}
	
	@Length(min=0, max=64, message="拓扑xml长度必须介于 0 和 64 之间")
	public String getTopologyXml() {
		return topologyXml;
	}

	public void setTopologyXml(String topologyXml) {
		this.topologyXml = topologyXml;
	}
	
}